import request from '@/utils/request'
//查询员工列表数据
export const getEmpListPage = (name,gender,begin,end,page,pageSize) => 
  request.get(`/emps?name=${name}&gender=${gender}&begin=${begin}&end=${end}&page=${page}&pageSize=${pageSize}`);

//新增员工
export const addEmp = (emp) => request.post('/emps',emp)
//根据id查询员工详情
export const queryEmp = (id) => request.get(`/emps/${id}`)
//修改员工信息
export const updateEmp = (emp) => request.put(`/emps`,emp)
//删除员工信息
export const deleteEmp = (ids) => request.delete(`/emps?ids=${ids}`)
//查询所有员工
export const queryEmps = () => request.get('/emps/list')